package org.jeecg.modules.demo.integrityArchive.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.common.system.vo.SelectTreeModel;
import org.jeecg.modules.demo.integrityArchive.entity.IntegrityArchive;

import java.util.List;
import java.util.Map;

/**
 * @Description: 廉洁档案表
 * @Author: jeecg-boot
 * @Date:   2025-04-08
 * @Version: V1.0
 */
public interface IntegrityArchiveMapper extends BaseMapper<IntegrityArchive> {

    List<SelectTreeModel> queryListByPid(String pid, @Param("query") Map<String, String> query);

    void updateTreeNodeStatus(String pid, String haschild);

    @Select("select * from integrity_archive where pid = #{id}")
    IntegrityArchive getByPid(String id);

    @Select("select * from integrity_archive where pid = #{id}")
    List<IntegrityArchive> queryByPid(String id);
}
